package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public List<Role> findAll();

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    public Role findById(Integer id);

    public List<Integer> findPermissisonsByUserId(Integer id);

    public List<Integer> findMenusByUserId(Integer id);

    public void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    public void delete(Integer id);
}
